
<body style="overflow: hidden">
<script type="text/javascript" src="<?php echo base_url('skin/js/gallery.js'); ?>"></script>
<script type="text/javascript" src="<?php echo base_url('skin/js/sortgallery.js'); ?>"></script>

<div class="fbcont">

<div id="top" class="bannersaktofb"></div>
	
	<div id="phoneGalleryfbnobg">

	<div class="width791c padding20 alignCenter textBlue z5 fontLight">
		<a href="<?php  echo site_url('welcome'); ?>" class="block posabsofb fontBold textBlue textdecounderfb font12fb textdecounderrev">Home</a> 
    </div>

    <div class="wizard marg20topfb margbot15yv">
            <a href="<?php  echo site_url('gallery'); ?>" class="">
            <span class="wiz1"></span>
                 <p class="font15mtop10fb wiz1to4wcustom">Pick a gadget</p>
            </a>
            <a href="<?php  echo site_url('promo'); ?>" class="">
             <span class="wiz2"></span>
                 <p class="font15mtop10fb wiz1to4wcustom">Choose your promo</p>
            </a>
            <a href="<?php  echo site_url('prepaid'); ?>" class="">
             <span class="wiz3"></span>
                 <p class="font15mtop10fb wiz1to4wcustom">Enter your mobile number</p>
            </a>
            <a href="<?php  echo site_url('userprofile'); ?>" class=" ">
             <span class="wiz4"></span>
                 <p class="font15mtop10fb wiz1to4wcustom">Complete your profile</p>
            </a>
            <a href="<?php  echo site_url('globestore'); ?>" class="width100">
             <span class="wiz5"></span>
                 <p class="font15mtop10fb wiz5wcustom">Select your preferred Globe Store branch for handset pickup	</p>
            </a>
     </div>

	<div class="width791c">
	         <div class="marglrautofbw646">
	            <div class="text14 floatLeft ">
				<label class="posRel topfb9px marg10Right margLeft40fb">Show</label>
				<select type="text" class="width177 marg10Top brand">
				<option>All</option>
				<option>Apple</option>
				<option>Huawei</option>
				<option>Nokia</option>
				<option>Samsung</option>
				</select>
			</div>
	
			<div class="text14 floatLeft ">
				<label class="posRel topfb9px marg10Right margLeft40fb">Price Range</label>
				<select type="text" class="width177 marg10Top price">
				<option>All</option>
				<option>P0 - P2,000</option>
				<option>P2,001 - P3,000</option>
				<option>P3,001 - P4,000</option>
				<option>P4,001 - P5,000</option>
	            <option>P5,001 - P9,000</option>
				</select>
			</div>
	
			<div class="clear"></div>
			</div>
	</div>
            





<div class="width791c comparesfb">

	<div class="deviceInfos floatLeft">
		<div>
	    	<p><b>Gadget:</b></p>
	        <p>None</p>
		</div>
	                
	    <div>
	    	<p><b>Promo:</b></p>
			<p>None</p>
		</div>
	                        
		<div>
			<p><b>Registration Period <br> and Savings:</b></p>
			<p>None</p>
		</div>
	                        
		<div>
			<p><b>Mobile Number:</b></p>
			<p>None</p>
		</div>
	                        
		<div>
			<p><b>Profile:</b></p>
			<p>None</p>
		</div>
	                        
		<div>
			<p><b>Globe Store Branch:</b></p>
			<p>None</p>
		</div>    
	</div>
	<div class="deviceInfosIns floatLeft" style="display:none">
		<div class="deviceBox active">
			<p><b>Gadget:</b></p>
			<p><?php if(isset($_COOKIE['fb_gadget'])) echo $_COOKIE['fb_gadget']; ?> - <?php if(isset($_COOKIE['fb_price'])) echo $_COOKIE['fb_price']; ?></p>
		</div>
	                 
		<div class="promoBox active">
			<p><b>Promo:</b></p>
			<p><?php if(isset($_COOKIE['fb_promo'])) echo $_COOKIE['fb_promo']; ?></p>
		</div>
	                        
		<div class="commitmentBox active">
			<p><b>Registration Period <br> and Savings:</b></p>
			<p><?php if(isset($_COOKIE['fb_commitmentBox'])) echo $_COOKIE['fb_commitmentBox']; ?></p>
		</div>
	                        
		<div class="prepaidBox active">
			<p><b>Mobile Number:</b></p>
			<p><?php if(isset($_COOKIE['fb_mobtel'])) echo $_COOKIE['fb_mobtel']; ?></p>
		</div>
	                        
		<div class="profileBox active">
			<p><b>Profile:</b></p>
			<p><h5><?php if(isset($_COOKIE['fb_username'])) echo $_COOKIE['fb_username']; ?></h5></span></p>
			<p>Email Address<br><span id="email"><?php if(isset($_COOKIE['fb_eadd'])) echo $_COOKIE['fb_eadd']; ?></span></p>
			<p>Date of Birth<br><span id="dob"><?php if(isset($_COOKIE['fb_bday'])) echo $_COOKIE['fb_bday']; ?></span></p>
			<p>Home Address<br><span id="add"><?php if(isset($_COOKIE['fb_address'])) echo $_COOKIE['fb_address']; ?></span></p>
		</div>
	                        
		<div class="storeBox active">
			<p><b>Globe Store Branch:</b></p>
			<p><?php if(isset($_COOKIE['fb_globestore'])) echo $_COOKIE['fb_globestore']; ?></p>
		</div>   
	</div>
            
            
            

	<div class="devicegalfbcont">
	                
		<div class="category-products">
	
        <ul class="gallery-products" id="products-list">
    	   	<?php foreach($devices as $dv){ ?> 
			<?php
			    $id = $dv["id"];
				$sku = $dv["sku"];
				$url = base_url() . "index.php/specification/" . $sku;
				$prodName = $dv["name"];
				$imgSrc = $dv["imageurl"];
				$shortDesc = $dv["shortdescription"];
				$price = $dv["price"];
				$planprice = $dv["planprice"];
				$like = $dv["like"];
				$brand = $dv["brand"];
			?>
			
			<li class="item" >
				<a href="<?php echo $url; ?>" onclick="_paq.push(['setCustomVariable', 3, _session , 'view-all , <?php echo $sku; ?>,  maitai gallery-page' ,'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); _paq.push(['trackLink']);" title="<?php echo $prodName; ?>" class="product-image">
					<img src="<?php echo $imgSrc; ?>" height="200" width="200" alt="<?php echo $prodName; ?>">
				</a>
				<div class="product-shop">
					<div class="f-fix">
					<h3 class="product-name" id="<?php echo $sku; ?>">
						<a href="<?php echo $url; ?>" onclick="_paq.push(['setCustomVariable', 3, _session , 'view-all , <?php echo $sku; ?>,  maitai gallery-page' ,'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); _paq.push(['trackLink']);" title="<?php echo $prodName; ?>">
							<?php echo $prodName; ?>
						</a>
					</h3>

					<script type="text/javascript">
						jQuery(document).ready(function() {
						   jQuery('#<?php echo "galleryadd-" . $sku; ?>').click(function(){
					
						     var sku = "<?php echo $sku; ?>";
						     var maitainumbercompare = getCookie("fb_maitainumbercompare");
					
						     if(maitainumbercompare=="" || maitainumbercompare=="0") {
								//alert(maitainumbercompare);
								//alert("This gadget was add in comparison list.");
								document.cookie="fb_maitainumbercompare=" + "1" + "; path=/";
								document.cookie="fb_maitaicompare1=" + sku + "; path=/";
						     }
					
						     if(maitainumbercompare=="1") {
							    //alert(maitainumbercompare);
								//alert("This gadget was add in comparison list.");
								var maitaicompare1 = getCookie("fb_maitaicompare1");
								if(sku!=maitaicompare1){
								document.cookie="fb_maitainumbercompare=" + "2" + "; path=/";
								document.cookie="fb_maitaicompare2=" + sku + "; path=/";
								}
						     }
						     
						     if(maitainumbercompare=="2") 
						        alert("The comparison list is full.");	     
						        window.location="<?php echo base_url(); ?>index.php/compare";
							  
						   });
						});
					</script>
       
					<p><?php echo $shortDesc; ?></p>	
					
					<span class="price" style ="display:none;" ><?php echo $dv["price"]; ?></span>
					<span class="brand" style ="display:none;" ><?php echo $dv["brand"]; ?></span>	 

					<?php /* HIDE FOR GALLERY ?>
					<div class="customer-ctrl">

						<!-- <a class="compare" href="http://www.globe.com.ph/mysuperplan" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Get the phone with a Plan,iphone5-16gb-white, shop gallery-page, bestsellers ', 'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); /*_paq.push(['trackLink']);"><span style=" text-transform: none;font-size:14px; ">Get this with a Plan</span></a>	-->

						<?php if(!isset($_COOKIE['maitainumbercompare']) || $_COOKIE['maitainumbercompare']=="0"): ?>
						<a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						<a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
						<?php endif;?>

						<?php if(isset($_COOKIE['maitainumbercompare']) && $_COOKIE['maitainumbercompare']=="1"): ?>
						  <?php if(in_array($_COOKIE['maitaicompare1'], $dv, TRUE)): ?>
						     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" style="display:none;" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>"><span>Remove from Comparison</span></a>
						  <?php else: ?>
						     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
						  <?php endif;?>
						<?php endif;?>

						<?php if(isset($_COOKIE['maitainumbercompare']) && $_COOKIE['maitainumbercompare']=="2"): ?>
						  <?php if(in_array($_COOKIE['maitaicompare1'], $dv, TRUE) || in_array($_COOKIE['maitaicompare2'], $dv, TRUE)): ?>
						     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" style="display:none;" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>"><span>Remove from Comparison</span></a>
						  <?php else: ?>
						     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
						  <?php endif;?>
						<?php endif;?>

					    <script type="text/javascript">
						jQuery(document).ready(function() {
						   jQuery('#<?php echo "galleryremove-" . $sku; ?>').click(function(){
					
						     var sku = "<?php echo $sku; ?>";
						     var maitaicompare1 = getCookie("maitaicompare1");
						     var maitaicompare2 = getCookie("maitaicompare2");
						     var maitainumbercompare = getCookie("maitainumbercompare");
					
						     if(maitainumbercompare=="1") {
						       document.cookie="maitainumbercompare=" + "0" + "; path=/";
						       
						       if(sku==maitaicompare1){
								document.cookie="maitaicompare1=" + "" + "; path=/";
							 	document.cookie="maitaicompare2=" + "" + "; path=/";
							 	window.location="<?php echo base_url(); ?>index.php/gallery";
						       } 
					
						     }
							
						     if(maitainumbercompare=="2") {
						       document.cookie="maitainumbercompare=" + "1" + "; path=/";
						       
						       if(sku==maitaicompare1){
								 document.cookie="maitaicompare1=" + maitaicompare2 + "; path=/";
								 document.cookie="maitaicompare2=" + "" + "; path=/";
						       } 
					
						       if(sku==maitaicompare2)
							 	document.cookie="maitaicompare2=" + "" + "; path=/";	     
						      window.location="<?php echo base_url(); ?>index.php/gallery";
						     } 
					 
						   });
						});
						</script>

						<span class="price" style="display:none;"><?php echo $price; ?></span>
						<span class="brand" style="display:none;"><?php echo $brand; ?></span>

					</div><?php */ ?>   
					
					    
                		</div>
           		   </div>
        	      </li>
    	 	<?php   } ?>
        </ul>
	
		</div>
		<div class="gallery-pagination">
			<a id="loadmoreitems" href="javascript:void(0)" class="btn load-more pull-left">Load More</a>
			<a href="#" class="btn top pull-right" id="btn_top">Top of the page</a>
			<div class="clear"></div>
		</div> 
		
	</div>

	<div class="clear"></div>	
</div>
    
    
    
    
    
    
<?php /* ?>     
    	<div class="gallery-header fluid-width">
		<div class="gallery960">


<div class="toolbar">
	
        <div class="sorterr">
    	
	<script type="text/javascript">
jQuery(window).load(function(){
   jQuery("#brand-newcontainer").html(jQuery("#brand-container").html());

	var tabs = jQuery('#brand-newcontainer .tabs');

	jQuery('a', tabs).on( "click", function(e) {
		e.preventDefault(); console.log("from viewgallery"); console.log(this);
		jQuery(this).parent().addClass('active').siblings().removeClass('active');
	});

	jQuery('#brand-newcontainer .sorter a.tabs').on( "click", function(e) {
		e.preventDefault(); console.log("from viewgallery"); console.log(this);
		var dataList = jQuery(jQuery(this).attr('href').toString());
	        jQuery('#brand-newcontainer .sorter .data-list').filter('.active').hide().removeClass('active');
	        dataList.show().addClass('active');
	});

	jQuery('#brand-newcontainer .data-list a').on( "click", function(e) {	
		var $this = jQuery(this),
	   	pos = $this.parent().position().top;
		$this.parents('.data-list').css('top', -pos).hide().removeClass('active');
		$this.parents('.sorter').find('a.tabs').contents()[0].nodeValue = $this.text();

	});   
});
</script>
            <div id="brand-newcontainer">
			 <div class="pull-left sorter brand">
			  <label>Show</label> 
                                        <select class="width72P">
			                              	<option>All</option>
											<option>Apple</option>
											<option>Cloudfone</option>
											<option>Huawei</option>
											<option>LG</option>
                                        	<option>Nokia</option>
                                        	<option>Samsung</option>
                                   		</select>
			</div> 
	 
            
        <div class="sort-by">
            
            <ul class="gallery-tabs tabs">
                            <li><a href="#" class="position1">Position</a></li>
                            <li class="active"><a href="#" class="name1">Name</a></li>
                            <li><a href="#" class="price1">Price</a></li>
            			</ul>

            <div class="pull-left sorter width300 orderby">
            			<label>Order By:</label> 
                        	<select class="width72P">
                            	<option>Ascending</option>
										<option>Descending</option>
                                        </select>
				</ul>
						</div>
            
        </div>
        	</div> 
    </div>
    </div>
			

	</div>
	</div>
    
    
    <div class="gallery-content">
		<div class="gallery960">


<div class="category-products">


        <ul class="gallery-products" id="products-list">
    	   	<?php foreach($devices as $dv){ ?> 
		<?php //print_r($dv); ?>
<?php
    $id = $dv["id"];
	$sku = $dv["sku"];
	$url = base_url() . "index.php/specification/" . $sku;
	$prodName = $dv["name"];
	$imgSrc = $dv["imageurl"];
	$shortDesc = $dv["shortdescription"];
	$price = $dv["price"];
	$planprice = $dv["planprice"];
	$like = $dv["like"];
	$brand = $dv["brand"];
?>
<li class="item" >
	<a href="<?php echo $url; ?>" onclick="_paq.push(['setCustomVariable', 3, _session , 'view-all , <?php echo $sku; ?>,  maitai gallery-page' ,'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); _paq.push(['trackLink']);" title="<?php echo $prodName; ?>" class="product-image">
		<img src="<?php echo $imgSrc; ?>" height="150" alt="<?php echo $prodName; ?>" style="width: 50%; padding-left: 25%; ">
	</a>
	<div class="product-shop">
		<div class="f-fix">
		<h3 class="product-name" id="<?php echo $sku; ?>">
			<a href="<?php echo $url; ?>" onclick="_paq.push(['setCustomVariable', 3, _session , 'view-all , <?php echo $sku; ?>,  maitai gallery-page' ,'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); _paq.push(['trackLink']);" title="<?php echo $prodName; ?>">
				<?php echo $prodName; ?>
			</a>
		</h3>
	<script type="text/javascript">
	jQuery(document).ready(function() {
	   jQuery('#<?php echo "galleryadd-" . $sku; ?>').click(function(){

	     var sku = "<?php echo $sku; ?>";
	     var maitainumbercompare = getCookie("maitainumbercompare");

	     if(maitainumbercompare=="" || maitainumbercompare=="0") {
			//alert(maitainumbercompare);
			//alert("This gadget was add in comparison list.");
			document.cookie="maitainumbercompare=" + "1" + "; path=/";
			document.cookie="maitaicompare1=" + sku + "; path=/";
	     }

	     if(maitainumbercompare=="1") {
		    //alert(maitainumbercompare);
			//alert("This gadget was add in comparison list.");
			var maitaicompare1 = getCookie("maitaicompare1");
			if(sku!=maitaicompare1){
			document.cookie="maitainumbercompare=" + "2" + "; path=/";
			document.cookie="maitaicompare2=" + sku + "; path=/";
			}
	     }
	     
	     if(maitainumbercompare=="2") 
	        alert("The comparison list is full.");	     
	        window.location="<?php echo base_url(); ?>index.php/compare";
		  
	   });
	});
	</script>
       
					<p><?php echo $shortDesc; ?></p>	
						                					
					<div class="customer-ctrl">

						<!-- <a class="compare" href="http://www.globe.com.ph/mysuperplan" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Get the phone with a Plan,iphone5-16gb-white, shop gallery-page, bestsellers ', 'page']); _paq.push(['setCustomVariable', 1, _session, window.location.href,'page']); /*_paq.push(['trackLink']);"><span style=" text-transform: none;font-size:14px; ">Get this with a Plan</span></a>	-->

						<?php if(!isset($_COOKIE['maitainumbercompare']) || $_COOKIE['maitainumbercompare']=="0"): ?>
						<a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						<a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
						<?php endif;?>

						<?php if(isset($_COOKIE['maitainumbercompare']) && $_COOKIE['maitainumbercompare']=="1"): ?>
						  <?php if(in_array($_COOKIE['maitaicompare1'], $dv, TRUE)): ?>
						     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" style="display:none;" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>"><span>Remove from Comparison</span></a>
						  <?php else: ?>
						     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
						  <?php endif;?>
						<?php endif;?>

						<?php if(isset($_COOKIE['maitainumbercompare']) && $_COOKIE['maitainumbercompare']=="2"): ?>
						  <?php if(in_array($_COOKIE['maitaicompare1'], $dv, TRUE) || in_array($_COOKIE['maitaicompare2'], $dv, TRUE)): ?>
						     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" style="display:none;" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>"><span>Remove from Comparison</span></a>
						  <?php else: ?>
						     <a class="add-to-compare" id="<?php echo "galleryadd-" . $sku; ?>" onclick="javascript:_paq.push(['setCustomVariable', 3, _session, 'Add to Compare , <?php echo $sku; ?> , maitai gallery-page , bestsellers', 'page']); _paq.push(['setCustomVariable', 1, _session , window.location.href,'page']); _paq.push(['trackLink']);"><span>Add to Compare</span></a>
						     <a class="remove-to-compare" id="<?php echo "galleryremove-" . $sku; ?>" style="display:none;"><span>Remove from Comparison</span></a>
						  <?php endif;?>
						<?php endif;?>

        <script type="text/javascript">
	jQuery(document).ready(function() {
	   jQuery('#<?php echo "galleryremove-" . $sku; ?>').click(function(){

	     var sku = "<?php echo $sku; ?>";
	     var maitaicompare1 = getCookie("maitaicompare1");
	     var maitaicompare2 = getCookie("maitaicompare2");
	     var maitainumbercompare = getCookie("maitainumbercompare");

	     if(maitainumbercompare=="1") {
	       document.cookie="maitainumbercompare=" + "0" + "; path=/";
	       
	       if(sku==maitaicompare1){
			document.cookie="maitaicompare1=" + "" + "; path=/";
		 	document.cookie="maitaicompare2=" + "" + "; path=/";
		 	window.location="<?php echo base_url(); ?>index.php/gallery";
	       } 

	     }
		
	     if(maitainumbercompare=="2") {
	       document.cookie="maitainumbercompare=" + "1" + "; path=/";
	       
	       if(sku==maitaicompare1){
			 document.cookie="maitaicompare1=" + maitaicompare2 + "; path=/";
			 document.cookie="maitaicompare2=" + "" + "; path=/";
	       } 

	       if(sku==maitaicompare2)
		 	document.cookie="maitaicompare2=" + "" + "; path=/";	     
	      window.location="<?php echo base_url(); ?>index.php/gallery";
	     } 
 
	   });
	});
	</script>

						<span class="price" style="display:none;"><?php echo $price; ?></span>
						<span class="brand" style="display:none;"><?php echo $brand; ?></span>

					</div>       
                		</div>
           		   </div>
        	      </li>
		 
		 
    	 	<?php   } ?>
        </ul>

</div>


<script type="text/javascript">

	
   	function addToCartBundle(formId) {
   		document.getElementById(formId).submit();    		
   	}

 
	
</script>

		<div class="toolbar_page">
    <div class="pager" style="display: none">
        <p class="amount">
                            <strong><?php echo count($devices); ?> Item(s)</strong>
                    </p>

        <div class="limiter">
            <label>Show</label>
            <select onchange="setLocation(this.value)">
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=4&amp;order=name&amp;sortby=bestsellers">
                    4                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=8&amp;order=name&amp;sortby=bestsellers">
                    8                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=12&amp;order=name&amp;sortby=bestsellers">
                    12                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=16&amp;order=name&amp;sortby=bestsellers">
                    16                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=20&amp;order=name&amp;sortby=bestsellers">
                    20                </option>
                            <option value="http://shop.globe.com.ph/phone-gallery.html?limit=100&amp;order=name&amp;sortby=bestsellers" selected="selected">
                    100                </option>
             </select> per page        </div>

        
    
	
    
    
        

    </div>
</div>
<div class="gallery-pagination">
	<a id="loadmoreitems" href="javascript:void(0)" class="btn load-more pull-left">Load More</a>	       
	<p class="page-indicator"><?php echo count($devices); ?> items</p>	
	<a href="#" class="btn top pull-right">Top of the page</a>
</div>
			
		</div>
		
		
<div class="floatLeft marg20Left">
	<div class="gallery-filter">
	<div class="gallery-filter-header">
		<a href="#filter">
			<h3><span class="icon other filter"></span> Filter By</h3>
			<span href="#collapse" class="icon other collapse invert"></span>
		</a>
	</div>
	<div class="filters">
		<h4><a href="#price">PRICE <span class="icon other collapse"></span></a></h4>
		                	<ul id="price" class="active" style="display: block;">
		                		<li>
		                			<dl>	
		                				
				                		<dd>
                                        <a href="">
                                        	<span class="price"><span class="price">?0.00</span> - <span class="price">?2,000.00</span></span></a> (1)
                                       </dd>
                                            
                                        <dd>
                                        <a href=""><span class="price"><span class="price">?2,001.00</span> - <span class="price">?3,000.00</span></span></a> (1)
                                        </dd>
                                        
                                        <dd>
                                        <a href="">
                                        	<span class="price"><span class="price">?3,001.00</span> - <span class="price">?4,000.00</span></span></a> (1)
                                       </dd>
                                            
                                        <dd>
                                        <a href=""><span class="price"><span class="price">P4,001.00</span> - <span class="price">?5,000.00</span></span></a> (1)
                                        </dd>		                			
                                        
                                        <dd>
                                        <a href=""><span class="price"><span class="price">P5,001.00</span> - <span class="price">P9,000.00</span></span></a> (1)
                                        </dd>
                                    </dl>
		                		</li>
                		
                			
                			</ul>
                								       
					</div>
				</div>
                
                <div class="deviceInfos">
                		<div>
                        	<p><b>Gadget:</b><p>
                            <p>None</p>
                        </div>
                
                		<div>
                        	<p><b>Promo:</b><p>
                            <p>None</p>
                        </div>
                        
                        <div>
                       	    <p><b>Registration Period </br> and Savings:</b><p>
                            <p>None</p>
                        </div>
                        
                        <div>
                        	<p><b>Mobile Number:</b><p>
                            <p>None</p>
                        </div>
                        
                        <div>
                        	<p><b>Profile:</b><p>
                            <p>None</p>
                        </div>
                        
                        <div>
                       		<p><b>Globe Store Branch:</b><p>
                            <p>None</p>
                        </div>    
                </div>
			<div class="deviceInfosIns" style="display:none">
                		<div  class="deviceBox active">
                        	<p><b>Gadget:</b><p>
                            <p><?php if(isset($_COOKIE['gadget'])) echo $_COOKIE['gadget']; ?> - P<?php if(isset($_COOKIE['price'])) echo $_COOKIE['price']; ?></p>
                        </div>
                 
                		<div class="promoBox active">
                        	<p><b>Promo:</b><p>
                            <p><?php if(isset($_COOKIE['promo'])) echo $_COOKIE['promo']; ?></p>
                        </div>
                        
                        <div class="commitmentBox active">
                       	    <p><b>Registration Period and Savings:</b><p>
                            <p><?php if(isset($_COOKIE['commitmentBox'])) echo $_COOKIE['commitmentBox']; ?></p>
                        </div>
                        
                        <div class="prepaidBox active">
                        	<p><b>Mobile Number:</b><p>
                            <p><?php if(isset($_COOKIE['mobtel'])) echo $_COOKIE['mobtel']; ?></p>
                        </div>
                        
                        <div class="profileBox active">
                        	<p><b>Profile:</b><p>
                           	<p><span id="name"><h5><?php if(isset($_COOKIE['username'])) echo $_COOKIE['username']; ?></h5></span></p>
                           	<p>Email Address<br><span id="email"><?php if(isset($_COOKIE['eadd'])) echo $_COOKIE['eadd']; ?></span></p>
                           	<p>Date of Birth<br><span id="dob"><?php if(isset($_COOKIE['bday'])) echo $_COOKIE['bday']; ?></span></p>
                           	<p>Home Address<br><span id="add"><?php if(isset($_COOKIE['address'])) echo $_COOKIE['address']; ?></span>

                            </p>
                        </div>
                        
                        <div class="storeBox active">
                       		  <p><b>Globe Store Branch:</b><p>
                            <p><?php if(isset($_COOKIE['globestore'])) echo $_COOKIE['globestore']; ?></p>
                        </div>   
            </div>
                
                
   </div>             
                
                
			</div>  
    </div>
    
</div>
<?php */ ?>